﻿#pragma once

#include <QtWidgets/QMainWindow>
#include <QVTKOpenGLNativeWidget.h>
#include <pcl/point_types.h> 
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/cloud_viewer.h>

class VTLPCLCamera : public QMainWindow
{
    Q_OBJECT

public:
    VTLPCLCamera(QWidget *parent = nullptr);
    ~VTLPCLCamera();
    pcl::visualization::PCLVisualizer::Ptr viewer;
    pcl::PointCloud<pcl::PointXYZ>::Ptr cloud;
	pcl::PointCloud<pcl::PointXYZ>::Ptr cloudCenter;
    bool isSelect = false;
    static void ClickPickCallBack(const pcl::visualization::PointPickingEvent& et, void* args);
    static void KeyboardCallBack(const pcl::visualization::KeyboardEvent& et, void* args);
    QVTKOpenGLNativeWidget* vtkWidget;
};
